<%@page import="Entities.*"%>
<%@page import="Helpers.*"%>
<%@page import="Hibernate.*"%>
<%@page import="java.util.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Toets</title>
    </head>
    <body>
        <%
            String id = request.getParameter("id");

            ToetsenHelper helper = new ToetsenHelper();
            Toetsen toets = helper.getToets(Integer.parseInt(id));


            helper.deleteToets(toets);

            response.sendRedirect("showToetsen.jsp");

       %>


    </body>
</html>
